package demo.entity;


public class ItemType {

	private String itemId;
	private String type;
	
	public ItemType() {
		
	}
	
	public ItemType(String itemId, String type) {
		this.itemId = itemId;
		this.type = type;
	}
	
	public String getItemId() {
		return itemId;
	}
	
	public String getType() {
		return type;
	}
	
	public void setItemId(String itemId) {
		this.itemId = itemId;
	}
	
	public void setType(String type) {
		this.type = type;
	}
	
	@Override
	public String toString() {
		StringBuffer stringBuffer = new StringBuffer();
		stringBuffer.append(String.format("%s,%s", itemId, type));
		return stringBuffer.toString();
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (!(obj instanceof ItemType))
			return false;
		ItemType other = (ItemType) obj;
		if (itemId == null) {
			if (other.itemId != null)
				return false;
		} else if (!itemId.equals(other.itemId))
			return false;
		if (type == null) {
			if (other.type != null)
				return false;
		} else if (!type.equals(other.type))
			return false;
		return true;
	}
}
